<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/WEB-INF/lib/pager-taglib.jar" prefix="pg"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'org.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="admin/resource/css/wzgl.css" />
	<link rel="stylesheet" type="text/css" href="admin/resource/css/global.css" />

  </head>
  
  <body class="body">
	    	<div class="w_100 right_all center box">
	    <div class="right_lm box">
	      <ul class="right_lm_ul_title">
	      	<li style="width: 20px;"></li>
      		<li style="width: 20px;"><input type="checkbox" /></li>
	        <li class="mb_t3">凭据名称</li>
	        <li class="mb_t4">凭据编号</li>
	        <li class="mb_t5">修改</li>
	        <li class="mb_t5">删除</li>
	        <li class="mb_t5">添加表单</li>
	        <li class="mb_t5">查看表单</li>
	      </ul>
	      <c:forEach var="flag" items="${pager.pageList}">
	      <ul class="right_lm_ul_cont">
	      	<li style="width: 20px;"></li>
      		<li style="width: 20px;"><input type="checkbox" /></li>
	        <li class="mb_t3">${flag.name}</li>
	        <li class="mb_t4">${flag.pnum}</li>
	        <li class="mb_t5"><a href="pf/pf_showUpdate.action?id=${flag.id}">修改</a></li>
	        <li class="mb_t5"><a href="pf/pf_delete.action?ids=${flag.id}">删除</a></li>
	        <li class="mb_t5"><a href="pf/pf_showAddCf.action?id=${flag.id}">添加表单</a></li>
	        <li class="mb_t5"><a href="pf/pf_indexCf.action?id=${flag.id}">查看表单</a></li>
	      </ul>
	      </c:forEach>
	      <div class="toolbar fl">
	      	<div class="toolbar_btn"><a href="pf/pf_showAdd.action" class="add_btn">增加</a></div>
	      </div>
	      <div class="fenye fl">
	       <div class="fenye_begin fl">
	        <pg:pager items="${pager.totalNum}" maxIndexPages="10" maxPageItems="15" url="pf/pf_index.action" export="currentPageNo = pageNumber">
		         <pg:first>
		             <a href="${pageUrl}">首页</a> 
		         </pg:first>
		         <pg:prev>
	                 <a href="${pageUrl}">上一页</a>
	             </pg:prev>
	             <pg:pages>
	               <c:choose>
	                <c:when test="${currentPageNo eq pageNumber}">
	                  <font color="red">1</font>
	                </c:when>
	                <c:otherwise>
	                  <a href="${pageUrl}">2</a>
	                </c:otherwise>
	               </c:choose>
	             </pg:pages>
	             <pg:next>
	               <a href="${pageUrl}">下一页</a>
	             </pg:next>
	             <pg:last>
	               <a href="${pageUrl}">尾页</a>
	             </pg:last>
		       </pg:pager>
	       </div>
	    </div>
	    </div>  
	</div>	
</body>
</html>
